#include "struct.h"



void structTest(){
    Books book1,book2;
    strcpy(book1.title,"c Programing");
    strcpy(book1.author,"Nuha ali");
    strcpy(book1.subject,"C Programing Tutorial");
    book1.book_id = 100;

    strcpy(book2.title,"Telecom Billing");
    strcpy(book2.author,"zara ali");
    strcpy(book2.subject,"Telecom Billing Tutorial");
    book2.book_id = 200;

  /* 输出 book1 信息 */
   printf( "Book 1 title : %s\n", book1.title);
   printf( "Book 1 author : %s\n", book1.author);
   printf( "Book 1 subject : %s\n", book1.subject);
   printf( "Book 1 book_id : %d\n", book1.book_id);

   /* 输出 book2 信息 */
   printf( "Book 2 title : %s\n", book2.title);
   printf( "Book 2 author : %s\n", book2.author);
   printf( "Book 2 subject : %s\n", book2.subject);
   printf( "Book 2 book_id : %d\n", book2.book_id);

    return ;

}

void  structParam(Books book){

   printf( "Book  title : %s\n", book.title);
   printf( "Book  author : %s\n", book.author);
   printf( "Book  subject : %s\n", book.subject);
   printf( "Book  book_id : %d\n", book.book_id);
   printf("%d\n",name_id);

    return ;
}

void refStruct() {
    struct B;
    struct A {
        struct B *b;
    } a;

    struct B
    {
        struct A *a;
    };
    
}



